package com.e2j.lib.vo;

import com.e2j.lib.*;
import java.util.List;
import java.util.Map;

/**
 * 数据表自动生成数据快捷读取类
 * @author Generate By Excel2Json
 * @date 22-07-16 10:59:41
 * @version 56531e83-04b3-11ed-8391-8cc681189f10
 **/
public class ExcelLibDataEasyAccess extends ExcelLibDataBase {


    public LibStar starMap(int id) {
        Map<Integer, LibStar> data = (Map<Integer, LibStar>) maps.get("starMapById");
        return data == null ? null : data.get(id);
    }
    public LibCharacter characterMap(int cid) {
        Map<Integer, LibCharacter> data = (Map<Integer, LibCharacter>) maps.get("characterMapByCid");
        return data == null ? null : data.get(cid);
    }
    public LibLevel levelMap(int lv) {
        Map<Integer, LibLevel> data = (Map<Integer, LibLevel>) maps.get("levelMapByLv");
        return data == null ? null : data.get(lv);
    }
    public List<LibLevel> levelList() {
        return (List<LibLevel>) maps.get("levelList");
    }
    public LibCustomerLevel customerLevelMkMap(int customerLv, int upgradeType) {
        Map<String, LibCustomerLevel> data = (Map<String, LibCustomerLevel>) maps.get("customerLevelMkMapByCustomerLvUpgradeType");
        return data == null ? null : data.get(customerLv + "_" + upgradeType + "_");
    }
    public List<LibTeam> teamMapList(int id){
        Map<Integer, List<LibTeam>> data = (Map<Integer, List<LibTeam>>) maps.get("teamMapListById");
        return data == null ? null : data.get(id);
    }
    public LibSetting settingMap(String key) {
        Map<String, LibSetting> data = (Map<String, LibSetting>) maps.get("settingMapByKey");
        return data == null ? null : data.get(key);
    }
    public List<LibSettingsComplex> settingsComplexMapList(String key){
        Map<String, List<LibSettingsComplex>> data = (Map<String, List<LibSettingsComplex>>) maps.get("settingsComplexMapListByKey");
        return data == null ? null : data.get(key);
    }

}